package com.ssn.chain.leave;

public class DeanHandler extends Handler {
    @Override
    void setNext(Handler next) {
        this.next = next;
    }

    @Override
    Handler getNext() {
        return this.next;
    }

    @Override
    void handle(int day) {
        if (day < 8){
            System.out.println("院长批准");
            return ;
        }
        if (getNext() != null){
            getNext().handle(day);
        }else{
            System.out.println("请假天数过多！有待商榷");
        }
    }
}
